﻿namespace Model.Domain.Extra
{
    /// <summary>
    /// 自定义属性类，用于表示是否具有某个动作
    /// </summary>
    [AttributeUsage(AttributeTargets.All)]
    public class HasAction : Attribute
    {
        /// <summary>
        ///
        /// </summary>
        public bool Data { get; set; }

        /// <summary>
        ///
        /// </summary>
        /// <param name="data"></param>
        public HasAction(bool data)
        {
            Data = data;
        }

        /// <summary>
        ///
        /// </summary>
        public HasAction()
        { }
    }
}